﻿namespace com.crownpack.Exceptions.SharePointExceptions
{
    using System;

    [Serializable]
    public class FeatureDeactivationFailedNotScopedForWebException : Exception
    {
        #region Constructors

        public FeatureDeactivationFailedNotScopedForWebException( )
            : base("The feature deactivation failed. The feature is not scoped for Web.")
        {
        }

        public FeatureDeactivationFailedNotScopedForWebException( Guid featureId, string title, string url )
            : base(string.Format( "The feature deactivation failed. The feature is not scoped for Web. The specified feature {0} ({1}) was not successfully deactivated at '{2}'.", featureId, title, url ))
        {
        }

        #endregion Constructors
    }
}